expectJSONP
( service in module ngMock
)
Creates a new request expectation for JSONP requests. For more info see expect()
.
url – {string|RegExp} –
HTTP url.
{requestHandler}
– Returns an object with respond
method that control how a matched
request is handled.